

flag = False
name = 'python'
if name == 'python': 
    flag = True 
    print('welcome boss' )
else:
    print(name);


type = 2;
if type == 0:
	print("type:是 1111111");
elif type == 1:
	print("type:是 2222222");
else :
	print('type:是 ' + str(type));


num = 11
flag = True;
if num == 1 & flag:
    print('num == 1 & flag == True');
elif num == 2 | num == 3:
	print('num == 2 | numm == 3');
elif num == 4 and flag:
	print('num == 4 and flag');
elif num == 5 or num == 6:
	print('num == 5 or num == 6');
else:
	print('else');

#Python 中的分支语句 只有 if else 没有 switch
#Python 中的循环语句有 for while  两种


count = 0
while (count < 9):
   print('The count is:', count)
   count = count + 1


for letter in 'Python':     # 第一个实例
   print('当前字母 :', letter)
 
fruits = ['banana', 'apple',  'mango']
for fruit in fruits:        # 第二个实例
	print('当前水果 :', fruit)
else:
	print('没有水果了');


